package com.openvalley.cyj.examination.save;

import com.openvalley.cyj.examination.pojo.User;

/**
 * 单次运行时，保存app全局数据的类
 * 改进：刷进缓存
 */
public class PageData {
    private static PageData pageData = null;
    //当前app正登录的用户
    private User user = null;

    private PageData(){

    }

    public static PageData getInstance(){
        if(pageData == null){
            pageData = new PageData();
        }
        return pageData;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
